/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-19
 * Time: 19:39
 */
public class Cat {
    //成员变量
    public String name;
    public String color;
    public int age;
    //成员方法
    public void eat() {
        System.out.println(this.name+"正在吃");
    }
    public void barks() {
        System.out.println(this.name+"喵喵叫");
    }
    public void sleep() {
        System.out.println(this.name+"正在睡觉");
    }
}
